package com.vastcom.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Users entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="users"
    ,catalog="student"
)

public class Users  implements java.io.Serializable {


    // Fields    

     private String id;
     private String username;
     private String pass;
     private String dpid;
     private String roleid;
     private String state;


    // Constructors

    /** default constructor */
    public Users() {
    }

    
    /** full constructor */
    public Users(String username, String pass, String dpid, String roleid, String state) {
        this.username = username;
        this.pass = pass;
        this.dpid = dpid;
        this.roleid = roleid;
        this.state = state;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=32)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="username")

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    @Column(name="pass")

    public String getPass() {
        return this.pass;
    }
    
    public void setPass(String pass) {
        this.pass = pass;
    }
    
    @Column(name="dpid", length=32)

    public String getDpid() {
        return this.dpid;
    }
    
    public void setDpid(String dpid) {
        this.dpid = dpid;
    }
    
    @Column(name="roleid", length=32)

    public String getRoleid() {
        return this.roleid;
    }
    
    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }
    
    @Column(name="state", length=10)

    public String getState() {
        return this.state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
   








}